﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

///<summary>
///
///</summary>
public class BalloonCommponent : MonoBehaviour
{
	public float Num;
	Text text;
	int temp;
    // Start is called before the first frame update
    void Start()
    {
		text = GetComponent<Text>();
    }

    public void Add(int num)
	{
		Num++;
		text.text = Num + "" + num;
		temp++;
		Debug.Log("通知了" +gameObject.name+":"+ temp + "次");
	}
}
